package com.cskaoyan.admin.service.impl;

import com.cskaoyan.admin.mapper.AdminMapper;
import com.cskaoyan.admin.service.AdminService;
import com.cskaoyan.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

/**
 * AdminService的实现类
 *
 * @author 侯嘉
 * @since 2024/04/10 10:08
 */

public class AdminServiceImpl implements AdminService {

    SqlSessionFactory sqlSessionFactory = SqlSessionFactoryUtil.getSqlSessionFactory();

    @Override
    public void login() {
        SqlSession sqlSession = sqlSessionFactory.openSession(true);
        AdminMapper adminMapper = sqlSession.getMapper(AdminMapper.class);

        sqlSession.close();
    }
}
